package com.wm.service;

import java.util.List;

import com.wm.bean.Address;

/**
 * @author yangbo
 *
 * 2013-1-6
 */
public interface AddressService {
	/**
	 * 保存
	 * @param a
	 * @return
	 */
	public Address saveAddress(Address a);
	
	/**
	 * 修改
	 * @param a
	 * @return
	 */
	public Address updateAddress(Address a);
	
	/**
	 * 删除
	 * @param id
	 */
	public void removeAddress(long id);
	
	/**
	 * 根据ID查询
	 * @param id
	 * @return
	 */
	public Address findAddressById(long id);
	
	/**
	 * 根据用户ID查询
	 * @param userId
	 * @return
	 */
	public List findAddressByUserId(long userId);
	
	/**
	 * 查询默认地址
	 * @return
	 */
	public Address findAddressByIsUserIdDefault(long userId);
}
